FROM openjdk:8-jdk-alpine

RUN addgroup -S admin && adduser -S admin -G admin
USER admin:admin

ARG JAR_FILE=target/*.jar
COPY ${JAR_FILE} app.jar

ENV JAVA_OPTS=""

EXPOSE 8800 18000

ENTRYPOINT ["sh","-c","java ${JAVA_OPTS} -jar /app.jar ${0} ${@}"]
